#include <iostream>
#include <math.h>
using namespace std;
int main2()
{
	int N;
	cin >> N;
	long long int A[300] = { 0 };
	long long int B[300] = { 0 };
	long long int middle;
	for (int i = 1; i <= N; i++)
    {
		cin>>middle;
		A[i] = middle + A[i - 1];
    }
    for (int i = 1; i <= N; i++)
    {
		cin>>middle;
		B[i] = middle + B[i - 1];
    }
	B[N+1]=B[N];		 
	long long int goal = 9999999999999999;
	for (int i = 1; i <= N + 1; i++)
	{
		cout << i - 1 << " ";
		goal = min(goal, A[i - 1] + B[N] - B[i - 1]);
	}
	cout << goal << endl;
	return 0;
}